package com.wxzz.elearing.evaluation.service.openfeign;

import com.wxzz.elearing.evaluation.service.openfeign.sentinel.ObsApiFeignImpl;
import com.wxzz.elearning.common.dto.FeignDrawImageDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "3002-wxzz-file-model-app",fallback = ObsApiFeignImpl.class)
public interface IObsApiFeign {


    @RequestMapping(value = "/obs-api/getCredentialUrl", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    String getCredentialUrl(@RequestBody FeignDrawImageDto feignDrawImageDto);
}
